contains

public abstract boolean contains(String name)

Returns true when an attribute with the given name is specified on the element or has a default value, otherwise returns false.

Parameters

name

the name of the attribute

Throws

when name is empty or blank

when the element is closed